package cn.tedu.boot09.mapper;

import cn.tedu.boot09.entity.Product;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ProductMapper {
    int insert(Product product);
    List<Product> select();
    int deleteById(int id);
    int update(Product product);
    Product selectById(int id);
    int count();
    //第一种批量删除
    int deleteByIds1(int[] ids);
    int deleteByIds2(List<Integer> ids);
    int deleteByIds3(int... ids);
    //动态修改
    int dynamicUpdate(Product product);

}
